package org.thread.test04.demo06;

/**
 * @author CSY
 * @date 2025 - 03 - 07
 */
public class MainTest {
    public static void main(String[] args) throws InterruptedException {
        //第三：创建自定义线程对象
        MyThread mt1 = new MyThread("线程一");
        MyThread mt2 = new MyThread("线程二");

        //优先级控制
        mt1.setPriority(10);
        mt2.setPriority(1);
        //第四：启动线程
        mt1.start();
        mt2.start();

    }
}
